<?php
$result = mysql_query("SELECT count(id) FROM newdata WHERE status < 5 AND status > 0 ") or die(mysql_error());
$query_data = mysql_fetch_row($result);
$count = $query_data[0];
$count = number_format($count);
$message_queue_count = get_sms_queue_count();
/*
if(isset($_GET('forcecron']))){
	run_fake_cron(1);
}else{
	run_fake_cron();
}*/
run_fake_cron();
?>

<script type="text/javascript" src="util.js"></script>
<title>haitianquake.com/converter - <?php pmsg('index_page_title'); if(isset($title)) print " | ".$title; ?></title>
<link rel="stylesheet" href="/style.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
<body>
<div id="wrapper">
    <div id="header">
		<div style="float: right;">
			
				<a href="search_post.php">Homepage</a>
	
	&nbsp;	&nbsp;
	<!--
	<br><br>
	<a href="add_record.php"><div class="button"><?php pmsg('Add Record'); ?></div></a>
	-->
	
		<a href="add_record.php?sms=1">Convert a Record</a>
		<!--<div class="button" style="color:#AEAEAE">Add SMS Record</div>-->
	
		&nbsp;	&nbsp;

	<a href="http://wiki.ushahidi.com/doku.php?id=people-finder-instructions2">Instructions</a>
		&nbsp;	&nbsp;
	
<!--	<a href="chat.php" target="_blank">Volunteer Chat</a> -->
			
			
			
		</div>
		<h2><a href="/converter">HQ Converter</a></h2>
		<div style="float: left;">
			Records Converted: <?php print $count; ?> | Messages in queue: <a href="add_record.php?sms=1"><?php echo $message_queue_count; ?></a>
		</div>
	</div>
	<div style="clear:both"></div>